module.exports = {
	check: function (req, res) {
		var loginbean = req.session.loginbean;
		
		if(loginbean == undefined) {
			res.redirect(307, '/');
			return false;
		}
		return loginbean;
	}
}
